#include<iostream>
#include<string>
#include<vector>
using namespace std;
string addstring(string s1, string s2)
{
	vector<int>A, B, C;
	/*for (int i = 0; i < s1.size(); i++) {
		A[i] = s1[i] - '0';
	}
	for (int i = 0; i < s2.size(); i++) {
		B[i] = s2[i] - '0';
	}*/
	for (int i = s1.size() - 1; i >= 0; i--) {
		A[i] = s1[i] - '0';
	}
	for (int i = s2.size() - 1; i >= 0; i--) {
		B[i] = s2[i] - '0';
	}
	int temp = 0;
	if (s2.size() < s1.size()) {
		addstring(s2, s1);
	}
	int i = 0;
	for (i = 0; i < s2.size(); i++) {
		temp += B[i];
		if (i < s1.size()) {
			temp += A[i];
		}
		C[i] = temp % 10;
		temp /= 10;
	}
	if (temp > 0) {
		C[i] = temp;
	}
	string ans = "";
	int len = sizeof(C) / sizeof(C[0]);
	for (int j = 0; j < len; j++) {
		ans[j] = C[i] + '0';
	}
	return ans;
}
int main()
{
	string s1, s2;
	cin >> s1 >> s2;
	cout << addstring(s1, s2) << endl;
	return 0;
}